package com.yudean.esb.dao.mds;

import com.yudean.esb.domain.mds.MdsPLNAccounts;
import com.yudean.esb.mapper.mds.MdsPLNAccountsMapper;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;


@Repository("mdsPLNAccountsDao")
@Scope("prototype")
public class MdsPLNAccountsDao {
    @Resource
    private MdsPLNAccountsMapper mdsPLNAccountsMapper;

    /**
     * @return
     */
    public List<MdsPLNAccounts> getAllPLNAccounts() {

        List<MdsPLNAccounts> list = mdsPLNAccountsMapper.getAllPLNAccounts();
        if (list == null || list.size() < 1) {
            return null;
        }
        return list;
    }
}

